/*
 * @Author: 余铖
 * @Date: 2020-03-24 09:44:21
 * @LastEditors: 余铖
 * @LastEditTime: 2020-03-24 13:39:32
 * @Description: 请输入文件说明
 */
import axios from '@/libs/api.request'
import {
    URL
} from '@/libs/util'
export const login = ({
    userName,
    password
}) => {
    const data = {
        userName,
        userPassword: password
    }
    return axios.request({
        url: URL + '/Login/loginGetToken',
        data,
        method: 'post'
    })
}

export const getUserInfo = (token) => {
    return axios.request({
        url: URL + '/Login/loginUserInfo',
        data: {
            value: token
        },
        method: 'post'
    })
}

export const logout = (token) => {
    return axios.request({
        url: URL + '/Login/exit',
        data: {
            value: token
        },
        method: 'post'
    })
}
